﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true" CodeBehind="Slide.aspx.cs" Inherits="VINETLIFE.AdminCP.Slide" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register assembly="DevExpress.Web.v9.2" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dxpc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
    function SelectAndClosePopup(value) {
        cbParent.SetValue(value);
        pcParent.Hide();
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
    Cập nhật Slide</h2>
<table class="tablet">
    <tr>
        <td class="style8">
            Tiêu đề(*):
        </td>
        <td class="style9">
            <asp:TextBox ID="txtTitle" runat="server" Width="220px" ValidationGroup="submitGrp"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle"
                ErrorMessage="*** Cần nhập tiêu đề" ValidationGroup="submitGrp"></asp:RequiredFieldValidator>
            &nbsp; &nbsp; Số thứ tự:
            <asp:TextBox ID="txtOrder" runat="server" Width="50px" Text="0" ValidationGroup="submitGrp"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style8">
            Hình ảnh
        </td>
        <td class="style9">
            <asp:FileUpload ID="fuImage" runat="server" />
            &nbsp;
            <asp:HyperLink ID="hplImage" runat="server" Target="_blank" Visible="False">[Xem 
            ảnh]</asp:HyperLink>
            <ul style="float:left;width:90%;margin:5px 0 0 20px; list-style-type:disc;">
                <li>
                      <p style="font-weight:bold;font-size:12px;font-style:italic;color:#333;">Slide Trang chủ, trang Business Partner có kích thước (1160 x 280)</p>
                </li>
                <li>
                      <p style="font-weight:bold;font-size:12px;font-style:italic;color:#333;">Slide Đối tác có kích thước (105 x 45) hoặc tỷ lệ(21:9)</p>
                </li>
            </ul>
          
            </td>
    </tr>
    <tr>
        <td class="style8">
            Đường dẫn:
        </td>
        <td class="style9">
            <asp:TextBox ID="txtSlideURL" runat="server" Width="479px" ValidationGroup="submitGrp" Text="#"></asp:TextBox>
          
        </td>
    </tr>
    <tr>
        <td class="style8">
           Trình bày tại
        </td>
        <td class="style9">
            <asp:DropDownList ID="cboCategory" runat="server">
            <asp:ListItem Text="..: Chọn danh mục :.." Value="-1"></asp:ListItem>
            <asp:ListItem Text=" Slide Business Partner" Value="0"></asp:ListItem>
            <asp:ListItem Text=" Slide trang chủ" Value="1"></asp:ListItem>
            <asp:ListItem Text=" Slide Đối tác(chân trang)" Value="2"></asp:ListItem>
        </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="style8">
            Chi tiết:
        </td>
        <td>
            <asp:TextBox ID="txtDescription" TextMode="MultiLine" runat="server" Width="90%">
            </asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style8">
            &nbsp;
        </td>
        <td class="style4">
            <asp:Button ID="btnSave" CssClass="button-gg-green" runat="server" Text="Lưu" OnClick="btnSave_Click" ValidationGroup="submitGrp" />
            <asp:Button ID="btnReset" runat="server" Text="Hủy" CssClass="button-gg-green" 
                onclick="btnReset_Click" />
        </td>
    </tr>
</table>
<dxpc:ASPxPopupControl ID="pcParent" runat="server" ClientInstanceName="pcParent"
    CloseAction="CloseButton" ContentUrl="~/AdminCP/ListCategory.aspx" HeaderText="Chọn danh mục mẹ"
    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" Height="336px"
    Width="699px">
    <ContentCollection>
        <dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
        </dxpc:PopupControlContentControl>
    </ContentCollection>
</dxpc:ASPxPopupControl>
</asp:Content>
